# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=xdg-dbus-proxy
pkgver=0.1.5
pkgrel=0
pkgdesc="Filtering proxy for D-Bus connections"
url="https://github.com/flatpak/xdg-dbus-proxy/"
arch="all"
license="LGPL-2.1-or-later"
depends="dbus"
makedepends="glib-dev docbook-xsl libxslt meson"
subpackages="$pkgname-doc"
source="https://github.com/flatpak/xdg-dbus-proxy/releases/download/$pkgver/xdg-dbus-proxy-$pkgver.tar.xz"

build() {
	abuild-meson . output
	meson compile -C output
}

check() {
	meson test --no-rebuild -C output
}

package() {
	DESTDIR="$pkgdir" meson install -C output
}

sha512sums="
4b079c060aa4c1d7f305216d03166b9edc19cb73ef1230e14a882f07a6400929f62afc8535338c8560ea032a519c0934fbc69533f5bebb555fecb8f090330a33  xdg-dbus-proxy-0.1.5.tar.xz
"
